import java.util.ArrayDeque;
import java.util.Deque;
import java.util.LinkedList;
import java.util.Queue;

public class Test {

    public static void main(String[] args) {
        Deque<Integer> queue1=new LinkedList<>();//队列的链式实现
        Deque<Integer> queue2=new ArrayDeque<>();//队列的线性实现

        Queue<Integer> queue3=new LinkedList<>();
        Queue<Integer> queue4=new LinkedList<>();
    }

    public static void main1(String[] args) {
        MyQueue myQueue=new MyQueue();
        myQueue.offer(1);//尾插
        myQueue.offer(2);
        myQueue.offer(3);
        System.out.println(myQueue.poll());//头删
        System.out.println(myQueue.peek());
        System.out.println(myQueue.isEmpty());
    }
}
